package com.fqcar.fqdf.plugin.image;

import android.os.Parcel;
import android.os.Parcelable;

import com.baidu.mapapi.model.LatLng;

/**
 * @author 张枭
 * @version V1.0
 * @date 2017/8/10
 * @desc ar导航传入Bean
 */
public class BaiduArNavBean implements Parcelable {

    private LatLng startLocation;

    private LatLng endLocation;

    private String startName;

    private String endName;

    public LatLng getStartLocation() {
        return startLocation;
    }

    public void setStartLocation(LatLng startLocation) {
        this.startLocation = startLocation;
    }

    public LatLng getEndLocation() {
        return endLocation;
    }

    public void setEndLocation(LatLng endLocation) {
        this.endLocation = endLocation;
    }

    public String getStartName() {
        return startName;
    }

    public void setStartName(String startName) {
        this.startName = startName;
    }

    public String getEndName() {
        return endName;
    }

    public void setEndName(String endName) {
        this.endName = endName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.startLocation, flags);
        dest.writeParcelable(this.endLocation, flags);
        dest.writeString(this.startName);
        dest.writeString(this.endName);
    }

    public BaiduArNavBean() {
    }

    protected BaiduArNavBean(Parcel in) {
        this.startLocation = in.readParcelable(LatLng.class.getClassLoader());
        this.endLocation = in.readParcelable(LatLng.class.getClassLoader());
        this.startName = in.readString();
        this.endName = in.readString();
    }

    public static final Creator<BaiduArNavBean> CREATOR = new Creator<BaiduArNavBean>() {
        @Override
        public BaiduArNavBean createFromParcel(Parcel source) {
            return new BaiduArNavBean(source);
        }

        @Override
        public BaiduArNavBean[] newArray(int size) {
            return new BaiduArNavBean[size];
        }
    };
}
